#ifndef _GT24L16M1Y_LIB_H
#define _GT24L16M1Y_LIB_H

#ifdef __cplusplus
extern "C"
{
#endif

#include <stdint.h>
#include <stdbool.h>
#include <string.h>

    extern unsigned long hfmbdd;
// ASCII编码
#define ASCII_5X7 1     // ASCII字符5X7点阵
#define ASCII_7X8 2     // ASCII字符7X8点阵
#define ASCII_8X16 3    // ASCII字符6X12点阵
#define ASCII_16X16_A 4 // ASCII字符7X8点阵
#define ASCII_16X16_T 5 // ASCII字符6X12点阵

#define SEL_GB 0

    unsigned char M1Y_ASCII_GetData(unsigned char ASCIICode, unsigned char Ascii_Kind, unsigned char *DZ_Data);
    unsigned int M1Y_U2G(unsigned int UN_CODE, unsigned char *DZ_Data);
    unsigned int M1Y_BIG52GBK(unsigned char h, unsigned char l);
    void M1Y_hzbmp16(unsigned char charset, unsigned int code, unsigned int codeex, unsigned char size, unsigned char *buf);

    extern void r_dat_bat(unsigned long ADDRESS, unsigned int len, unsigned char *DZ_Data);

#ifdef __cplusplus
}
#endif

#endif
